import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from "./store/index";
import Element from 'element-ui'
import '@/style/theme/index.css'
import i18n from '@/locale/index'
import '@/permission'
import './style/font/iconfont.css'
import {get, post} from '@/utils/http'
import Table from '@/compoents/Table/index'
import Dialog from '@/compoents/Dialog/index'
import OrderStatus from '@/compoents/orderStatus/index'
import SelectCallPhone from '@/compoents/selectCallPhone'
import SearchForm from '@/compoents/searchForm/index'
// import ElDatePicker from '@/compoents/date-picker/index'
import '@/utils/directive'
Vue.use(Element, {size: 'small',})
// 处理dialog页面抖动问题
Element.Dialog.props.lockScroll.default = false
Vue.component('Table', Table)
Vue.component('Dialog', Dialog)
Vue.component('OrderStatus', OrderStatus)
Vue.component('SearchForm', SearchForm)
Vue.component('SelectCallPhone',SelectCallPhone)
// Vue.component(ElDatePicker.name, ElDatePicker)
// 抽出 ElDatePicker 组件扩展
Vue.config.productionTip = false
Vue.prototype.$get = get
Vue.prototype.$post = post
Vue.prototype.$process = process.env
new Vue({
    render: h => h(App),
    i18n,
    router,
    store
}).$mount('#app')
